<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class AdModel extends Model{
	protected $validate = [
        'rule' => [
            'name' => "require|unique:ad|length:2,32"
        ],
        'msg'  => [
            'name.require' => "广告位名称必须填写！",
            'name.unique' => "广告位名称已存在！",
            'name.length' => "广告位名称长度必须不少于2且不超过32"
        ]
   ];
}
